package com.example.jvm.classloader;

/**
 * @author zhaoyunlong
 * @date 2021/12/6
 * @description   了解classloader、 加载器、父加载器
 */
public class ClassLoaderClass_01 {

    public static void main(String[] args) {
        System.out.println(ClassLoaderClass_01.class.getClassLoader());
        System.out.println(ClassLoaderClass_01.class.getClassLoader().getClass().getClassLoader());
        System.out.println(ClassLoaderClass_01.class.getClassLoader().getParent());
        System.out.println(ClassLoaderClass_01.class.getClassLoader().getParent().getParent());
    }
}
